package com.quick.domain;

import com.quick.common.ActionServiceConstants;

public enum IntelligentAssistantActionEnum {
    NORMAL("1", ActionServiceConstants.NORMAL),
    GROUP("2", ActionServiceConstants.GROUP),
    PROMOTION("3", ActionServiceConstants.PROMOTION);
    private String action;
    private String serviceName;

    IntelligentAssistantActionEnum(String action, String serviceName) {
        this.action = action;
        this.serviceName = serviceName;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public static IntelligentAssistantActionEnum getValue(String action){
        for(IntelligentAssistantActionEnum etse : IntelligentAssistantActionEnum.values()){
            if(etse.getAction().equals(action)){
                return etse;
            }
        }
        return null;
    }
}
